@extends('home.layout.base')
@section('title', '个人资料修改')
@section('pluginstyle')
<script src="{{ asset('/dist/home/js/1102.js') }}"></script>
<link rel="stylesheet" href="{{ asset('/dist/home/css/qikoo_user.css') }}">
<link type="text/css" rel="stylesheet" href="{{asset('/dist/admin/css/user_add.css')}}" />
<script>var _isindex = 0;</script>
@endsection
@section('content')
<div class="user-body">
    <div class="user-container">
        <div class="user-crumbs m-b-10">
            <a href="{{ url('/') }}">首页</a> > 基本信息修改
        </div>
        <div class="clearfix_new">
            @include('home.user.menu')
            <div class="user-main">
                <div class="order-main clearfix_new">
                    <h1 style="border:0">基本信息修改 </h1>
                    <hr />
                    <form method="post" action="{{ url("/user/edit") }}" class="clear">
                        <input type="hidden" name="_token" value="{{csrf_token()}}" />
                        <img src="{{$userRec->user_avartar}}" width="168" id="im" class=""style="float:left" /> 
                        <div style="float:left">  
                            <p>账 号：<input type="text" name="user_name" disabled="" value="{{$userRec->user_name}}" /></p>
                            <p>性 别：
                                    <label><input type="radio" name="user_sex" value="男" {{ ($userRec->user_sex == "男") ? 'checked' : '' }}/>男</lable>
                                    <label><input type="radio" name="user_sex" value="女" {{ ($userRec->user_sex == "女") ? 'checked' : '' }}/>女</label>
                            </p>
                            <p>昵 称：<input type="text" name="user_nickname" value="{{$userRec->user_nickname}}" /></p>
                            <p>邮 箱：<input type="text" name="user_email" value="{{$userRec->user_email}}" /></p>
                            <p>手 机：<input type="text" name="user_tel" value="{{$userRec->user_tel}}" /></p>
                            <p>密 码：<input type="password" name="user_pass">(* 置空则不修改 *)</p>
                            <p><input type="submit" value="修改" /></p>
                        </div>
                    </form>
                    <div style="clear:both"></div>
                    <form name="fm">
                        <input type="hidden" name="_token" value="{{csrf_token()}}" />
                        <input type="hidden" name="uid" value="{{Session::get("userData")->id}}" />
                        <input type="file" name="avartar" id="avartar" />
                    </form>
                    <div class="fl errs">
                        {{ session("info") }}
                        <ul>
                            @if(count($errors) > 0)
                            @foreach($errors->all() as $e)
                            <li>{{$e}}</li>
                            @endforeach
                            @endif
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
@section('pluginscript')
<script src="{{ asset('/uploadify/jquery.uploadify.min.js')}}"></script>
<script src="{{asset('/js/index.js')}}"></script>
@endsection